﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for TuVanController
/// </summary>
public class TuVanController
{
	public TuVanController()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    TuVanDAL DAL = new TuVanDAL();
    public DataTable fnC_GetAllDataTuVan()
    {
        return DAL.fnG_GetAllDataTuVan();
    }
    public TuVanEntity fnG_GetTuVan(string MaTinTuc)
    {
        return DAL.fnG_GetTuVan(MaTinTuc);
    }
    public DataTable fnC_Gettop4tuvan()
    {
        return DAL.fnG_Get4TuVan();
    }
    //tin khac
    public DataTable fnC_GetData10Diff(TuVanEntity TuVan)
    {
        return DAL.fnG_GetData10TuVanDiff(TuVan);
    }
    //insert tuvan
    public int fnC_InsertTuVan(TuVanEntity TuVan)
    {
        return DAL.fnG_InsertTuVan(TuVan);
    }
    //update
    public int fnC_UpdateTuVan(TuVanEntity TuVan)
    {
        return DAL.fnG_UpdateTuVan(TuVan);
    }
    //delete
    public int fnC_DeleteTuVan(TuVanEntity TuVan)
    {
        return DAL.fnG_DeleteTuVan(TuVan);
    }
    //active
    public int fnC_ActiveTuVan(TuVanEntity TuVan)
    {
        return DAL.fnG_ActiveTuVan(TuVan);
    }
    public DataTable fnC_GetDataForDate(DateTime tungay, DateTime denngay)
    {
        return DAL.fnG_GetDataForDate(tungay, denngay);
    }
    /// <summary>
    /// tim kiem tv
    /// </summary>
    /// <param name="timkiem"></param>
    /// <returns></returns>
    public DataTable fnC_TimKiemTuVan(string timkiem)
    {
        return DAL.fnG_TimKiemTuVan(timkiem);
    }
}